package com.Dao;

import com.annotations.dao.Mapper;
import com.annotations.dao.Queue;
import com.constant.SqlContent;
import com.model.Job;

/**
 * @author linyu.dai
 * @project rpc
 * @description
 * @creat 2022/12/1 11:10:56
 */
@Mapper
public interface JobDao {

    @Queue(sql = "select * from jobs where id = ?")
    Job findById(Integer id);

    @Queue(type = SqlContent.insert,sql = "insert into jobs values(?,?,?)")
    Job insert(Job job);
}
